import {WeaTools} from 'ecCom'

export const doSaveInterfaceSetting = params => {
    return WeaTools.callApi('/api/contractlock/get/saveInterfaceSetting', 'POST', params);
}

export  const  getInterfaceSeted = params => {
    return WeaTools.callApi(`/api/contractlock/get/getInterfaceSeted`, 'POST', params);
}

export  const doSaveFormCreateAndEdit = (params) => {
    return  WeaTools.callApi(`/api/contractlock/get/saveFormDatas`, 'POST', params);
}

export const init = (params) => {
    return WeaTools.callApi(`/api/contractlock/get/init`, 'POST', params);
}

/**
 * 服务校验
 * @param params
 * @returns {*}
 */
export const checkServer = (params) => {
    return WeaTools.callApi(`/workflow/qiyuesuo/wf_qiyuesuoSetClientOperate.jsp`, 'POST', params);
};
/**
 * 契约锁相关配置执行
 * @param params
 * @returns {*}
 */
export const immediatelyRun = (params) => {
    return WeaTools.callApi(`/api/contractlock/get/executeRelateConfig`, 'POST', params);
}

export const currencyRequest = (url, type, params) => {
    return WeaTools.callApi(url, type, params);
}

export const currencyRequestPOST = (url, params) => {
    return currencyRequest(url, "POST", params);
}
export const currencyRequestGET = (url, params) => {
    return currencyRequest(url, "GET", params);
}



